package com.lujianfei.powerinput.database;

import android.os.Parcel;
import android.os.Parcelable;

import com.orm.SugarRecord;
import com.orm.dsl.Column;
import com.orm.dsl.Table;


@Table(name = "NoteItemModel")
public class NoteItemModel extends SugarRecord implements Parcelable {

    @Column(name = "noteName")
    private
    String noteName;

    public String getNoteName() {
        return noteName;
    }

    public void setNoteName(String noteName) {
        this.noteName = noteName;
    }

    public NoteItemModel() {
    }

    protected NoteItemModel(Parcel in) {
        setId(in.readLong());
        noteName = in.readString();
    }

    public static final Creator<NoteItemModel> CREATOR = new Creator<NoteItemModel>() {
        @Override
        public NoteItemModel createFromParcel(Parcel in) {
            return new NoteItemModel(in);
        }

        @Override
        public NoteItemModel[] newArray(int size) {
            return new NoteItemModel[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(getId());
        parcel.writeString(noteName);
    }
}
